﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="RWGLDetailReadOnly.aspx.cs" Inherits="WXYW.RWGLDetailReadOnly" %>

<%@ Register Namespace="WXYW.Controls" TagPrefix="WXYWControl" Assembly="WXYW.Common" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    任务管理 - 详细信息
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <div class="buttonHeader" align="right">
        <img src="image/topic.gif" alt="" />
        <asp:LinkButton ID="taskFileLnkBtn" runat="server" OnClick="taskFileLnkBtn_Click">附件</asp:LinkButton>
        &nbsp;&nbsp;
        <img src="image/operateicon/back_back.gif" alt="" />
        <asp:LinkButton ID="backLinkButton" runat="server" OnClick="backLinkButton_Click">返回</asp:LinkButton>
        &nbsp;&nbsp;
    </div>
    <table width="100%" style="line-height: 25px;">
        <tr>
            <td style="width: 15%">
                <b>任务主题:</b>
            </td>
            <td style="width: 35%">
                <asp:Label ID="subjectLabel" runat="server" Text=""></asp:Label>
            </td>
            <td style="width: 15%">
                <b>任务类型:</b>
            </td>
            <td style="width: 35%">
                <asp:Label ID="taskTypeLabel" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <b>创建日期:</b>
            </td>
            <td>
                <asp:Label ID="createdateLabel" runat="server" Text=""></asp:Label>
            </td>
            <td>
                <b>预定完成日期:</b>
            </td>
            <td>
                <asp:Label ID="shouldLabel" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <b>创建人员:</b>
            </td>
            <td>
                <asp:Label ID="createrLabel" runat="server" Text=""></asp:Label>
            </td>
            <td>
                <b>执行人员:</b>
            </td>
            <td>
                <asp:Label ID="assigneeLabel" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <b>完成日期:</b>
            </td>
            <td>
                <asp:Label ID="completeDateLbl" runat="server"></asp:Label>
            </td>
            <td>
                <b>任务状态:</b>
            </td>
            <td>
                <asp:Label ID="statusLbl" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <b>问题类型:</b>
            </td>
            <td>
                <asp:Label ID="questionTypeLbl" runat="server"></asp:Label>
            </td>
            <td>
                <b>问题原因类型:</b>
            </td>
            <td>
                <asp:Label ID="resultTypeLbl" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <b>任务内容:</b>
            </td>
            <td colspan="2">
                <b>处理结果:</b>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:TextBox ID="taskContentTxtBox" runat="server" Width="98%" Height="200px" ReadOnly="true" TextMode="MultiLine" Wrap="true">
                </asp:TextBox>
            </td>
            <td colspan="2">
                <asp:TextBox ID="resultTextBox" runat="server" Width="98%" TextMode="MultiLine" Wrap="true" Height="200px"
                    ReadOnly="true"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <b>回访信息:</b>
            </td>
            <td>
                <b>回访时间:</b>
            </td>
            <td>
                <asp:Label ID="feedbackTimeLbl" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:TextBox ID="hfTextBox" runat="server" Width="98%" TextMode="MultiLine" Height="100px"
                    ReadOnly="true"></asp:TextBox>
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="taskFileHF" runat="server" />
    <cc1:ModalPopupExtender ID="TaskFileModalPopupExtender" PopupControlID="TaskFilePanel"
        BackgroundCssClass="modalBackground" TargetControlID="taskFileHF" runat="server"
        Drag="true" PopupDragHandleControlID="TaskFileDragBar" CancelControlID="closeTaskFileBtn"
        OnLoad="ModalPopupExtender1_Load">
    </cc1:ModalPopupExtender>
    <asp:Panel ID="TaskFilePanel" Style="display: none" BackImageUrl="~/image/mainSkinBG.gif"
        CssClass="modalPopup" runat="server" Width="500px">
        <!-- Header -->
        <div class="box-header" id="TaskFileDragBar">
            <img src="image/stdBox_left_top.gif" alt="" />
            <h2>
                任务附件</h2>
        </div>
        <div class="functionPanel">
            <table width="100%">
                <tr>
                    <td>
                        <WXYWControl:CustomGridView ID="TaskFileGridView" CssClass="tableList" BorderColor="#888888"
                            BorderWidth="1px" runat="server" AutoGenerateColumns="False" Width="100%" OnRowDataBound="TaskFileGridView_RowDataBound"
                            OnMustAddARow="GridView_MustAddARow">
                            <Columns>
                                <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="IDLbl" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="文件名" DataField="FileName" />
                                <asp:TemplateField HeaderText="创建日期">
                                    <ItemTemplate>
                                        <%#Convert.ToDateTime(Eval("CreateDate")).ToString("yyyy-MM-dd")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="操作">
                                    <ItemTemplate>
                                        <img src="image/operateicon/docview.gif" alt="" />
                                        <asp:HyperLink ID="ViewFileHyperLink" runat="server" Target="_blank">查看</asp:HyperLink>
                                        <%--<img src="image/operateicon/docview.gif" alt="" />
                                    <asp:LinkButton ID="viewLnBtn" OnClick="viewLnBtn_click" CommandArgument='<%#Eval("ID") %>'
                                        runat="server">删除</asp:LinkButton>--%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <HeaderStyle ForeColor="White" Font-Bold="True" BackColor="#A55129"></HeaderStyle>
                        </WXYWControl:CustomGridView>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:FileUpload ID="TaskFileFileUpload" runat="server" Visible="false" />
                        <asp:Button ID="uploadTaskFileBtn" runat="server" Text="上传" Visible="false" OnClick="uploadTaskFileBtn_Click" />
                    </td>
                </tr>
                <tr style="height: 25px" align="center">
                    <td>
                        <img src="image/operateicon/docdelete.gif" alt="" />
                        <asp:LinkButton ID="closeTaskFileBtn" runat="server">关闭</asp:LinkButton>
                    </td>
                </tr>
            </table>
        </div>
        <div class="box-footer">
            <img alt="" src="image/stdBox_left_bottom.gif" />
            <p>
                &nbsp;</p>
        </div>
    </asp:Panel>
</asp:Content>
